﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masDefault.master" AutoEventWireup="true"
    CodeFile="ProductCate.aspx.cs" Inherits="ProductCate" %>

<%@ Register Src="UserControl/ProductItem.ascx" TagName="ucProductItem" TagPrefix="uc1" %>
<%@ Register Assembly="CommonTagTime" Namespace="CommonTagTime.PagerControl.stylePager2" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <%if (objCategory != null)
      {
          if (objCategory.Name.Length > 0)
          { %>
    <h1><%=Server.HtmlEncode(objCategory.Name)%></h1>
    <%if (objCategory.Description.Length > 0)
      { %>
    <p class="Comment">
        <%=Server.HtmlEncode(objCategory.Description)%></p>
    <%  }


          }
      }%>

<div class="box-content2">
    <div class="productPagingTop">
        <cc1:stylePager2 ID="pagerTop" runat="server" OnPageIndexChanging="pagerTop_PageIndexChanging"
            OnPageSizeChanging="pagerTop_PageSizeChanging" ShowPageSize="True" ShowViewAll="True" />
    </div>
    <asp:DataList ID="dalProduct" runat="server" RepeatColumns="4" ItemStyle-CssClass="listProductTD"
        RepeatLayout="Table" CssClass="listProduct" RepeatDirection="Horizontal" OnItemDataBound="dalProduct_ItemDataBound">
        <ItemTemplate>
            <asp:PlaceHolder ID="phdControlProduct" runat="server"></asp:PlaceHolder>
        </ItemTemplate>
    </asp:DataList>
    <div class="productPagingBottom">
        <cc1:stylePager2 ID="pagerBottom" runat="server" OnPageIndexChanging="pagerTop_PageIndexChanging"
            OnPageSizeChanging="pagerTop_PageSizeChanging" ShowPageSize="True" ShowViewAll="True" />
    </div>
    <% if (TotalProducts == 0)
       {%>
       <%--<div class="emptylist">Không có sản phẩm nào trong danh sách</div>--%>
       <% } %>

    <div class="clear"></div>
</div>

</asp:Content>
